#ifndef REGIST_H
#define REGIST_H

#include <QDialog>
#include <QSql>
#include <QSqlQueryModel>
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QString>
#include <QSqlError>
#include <QSqlRecord>

#include "student.h"
#include "rootmenu.h"

namespace Ui {
class Regist;
}

class Regist : public QDialog
{
    Q_OBJECT

public:
    explicit Regist(QWidget *parent = nullptr);
    ~Regist();

    QSqlDatabase *dbconn;
    void setdbconn(QSqlDatabase *dbconn)
    {
        this->dbconn = dbconn;
    }

private slots:
    void on_regist_ok_clicked();

    void on_regist_quit_clicked();

private:
    Ui::Regist *ui;
    RootMenu *rm;
    student *stu;
};

#endif // REGIST_H
